<template>
  <div>
    <van-list
      v-model:loading="loading"
      :finished="finished"
      finished-text="没有更多了"
      @load="onLoad"
    >
      <Goods :list="glist" />
    </van-list>
  </div>
</template>

<script setup lang="ts">
import Goods from "../components/goods.vue";
import { useGoodsList } from "../hooks/goodsList";
const { glist, finished, loading, onLoad } = await useGoodsList();
</script>

<style scoped></style>
